﻿_n = _this select 0;

if (_n == 0) then 
	{
	
	if (valid_mater < 0) then {valid_mater = 4};
	if (valid_mater > 4) then {valid_mater = 0};

	if (valid_mater == 0) then {mater_valid = "None" ; mat_eni = 0;};
	if (valid_mater == 1) then {mater_valid = "Random" ; mat_eni = 1;};
	if (valid_mater == 2) then {mater_valid = "Motor." ; mat_eni = 2;};
	if (valid_mater == 3) then {mater_valid = "Meca" ; mat_eni = 3;};
	if (valid_mater == 4) then {mater_valid = "Meca./Armor" ; mat_eni = 4;};

	ctrlSetText [10140,mater_valid]; 
	};
	
	
if (_n == 1) then 

	{
	mat_eni = valid_mater ; 
	PublicVariable "mat_eni" ; 
	_mf = [] execVM "computer\msge_basee.sqf" ;
	};
if (true) exitWith {};